import request from "@/utils/request";
export function insertBanner(data) {
  return request({
    url: "/commerce-banner/insert",
    method: "post",
    data: data
  });
}
export function updateBanner(data) {
  return request({
    url: "/commerce-banner/update",
    method: "post",
    data: data
  });
}
export function deleteBanner(data) {
  return request({
    url: "/commerce-banner/delete",
    method: "post",
    data: data
  });
}
export function deletesBanner(data) {
  return request({
    url: "/commerce-banner/deletes",
    method: "post",
    data: data
  });
}
export function enableBanner(data) {
  return request({
    url: "/commerce-banner/enable",
    method: "post",
    data: data
  });
}
export function enablesBanner(data) {
  return request({
    url: "/commerce-banner/enables",
    method: "post",
    data: data
  });
}
export function disableBanner(data) {
  return request({
    url: "/commerce-banner/disable",
    method: "post",
    data: data
  });
}
export function disablesBanner(data) {
  return request({
    url: "/commerce-banner/disables",
    method: "post",
    data: data
  });
}
export function viewBanner(params) {
  return request({
    url: "/commerce-banner/view",
    method: "get",
    params: params
  });
}
export function pageBanner(params) {
  return request({
    url: "/commerce-banner/page",
    method: "get",
    params: params
  });
}
export function searchBanner(params) {
  return request({
    url: "/commerce-banner/search",
    method: "get",
    params: params
  });
}
